
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>交易详情</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="">
    <!-- Stylesheets -->
    <link rel="stylesheet" href="https://static.9hive.cn/global/css/bootstrap-extend.min.css?v2.2.0">

    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.css">
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.css?v=1.1">
    <link rel="stylesheet" href="https://static.9hive.cn/mmenu/assets/css/site.min.css?v2.2.0">
    <link rel="stylesheet" href="https://static.9hive.cn/global/fonts/font-awesome/font-awesome.min.css">
    <link rel="stylesheet" href="https://static.9hive.cn/global/vendor/common/common_20170925.css?v=1.0">
    <link rel="stylesheet" href="https://static.9hive.cn/hive/assets/css/movie_detail.css">
    <!--图片编辑器-->
    <link href="/res/plugins/img-viewing/viewer.css" rel="stylesheet">
    <!--图片编辑器-->

    <!--[if lt IE 9]>
    <script src="https://static.9hive.cn/global/vendor/html5shiv/html5shiv.min.js"></script>
    <![endif]-->

    <!--[if lt IE 10]>
    <script src="https://static.9hive.cn/global/vendor/media-match/media.match.min.js"></script>
    <script src="https://static.9hive.cn/global/vendor/respond/respond.min.js?v=1.2.2"></script>
    <![endif]-->
</head>
<body id="content">
<div class="ibox">
    <div class="ibox-title">
        <div class="pull-left mbx navbar_title">
            <span>审核管理</span>
            <span class="line">/</span>
            企业认证
        </div>
    </div>
    <div class="ibox-content background-transparent padding-0">
        <div class="wrapper wrapper-content">
            <div class="row">
                <div class="col-md-12 clear-both-space ">

                    <!--<div class="div_modle">
                        <div class="flexed content_between margin-top-4">
                            <div class="IE-left">
                                <div class="radius_span"></div>
                                <span class="title_span">${companyInfo.company_name!}</span>
                            </div>
                        </div>
                        <div class="padding-left-20 margin-vertical-20_10">
                            <div class=" ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">邮箱</span>
                                    <div class="inline-block margin-left-40" id="tag_age">
                                        ${companyInfo.email!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">企业认证时间</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.createDate!,dateFormat="yyyy-MM-dd HH:mm:ss"}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>-->
                    <!--<div class="div_modle margin-top-20">
                        <div class="flexed content_between margin-top-4">
                            <div class="IE-left">
                                <div class="radius_span"></div>
                                <span class="title_span">企业信息登记</span>
                            </div>
                        </div>
                        <div class="padding-left-20 margin-vertical-20_10">

                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">品牌名称</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.brandName!}

                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">企业名称</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.company_name!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">营业执照注册号</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.business_licence_code!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class="flexed_inline">
                                    <span class="inline-table text-right width-100">营业执照扫描件</span>
                                    <div class="inline-block margin-left-40">
                                        <img class="img-rounded docs-pictures clearfix" data-original="${companyInfo.business_licence_img!}" src="${companyInfo.business_licence_img!}" style="max-height: 80px"/>
                                    </div>
                                </div>
                            </div>
                        </div>


                    </div>-->
                    <div class="div_modle margin-top-20">
                        <div class="flexed content_between margin-top-4">
                            <div class="IE-left">
                                <div class="radius_span"></div>
                                <span class="title_span">运营者信息登记</span>
                            </div>
                        </div>
                        <div class="padding-left-20 margin-vertical-20_10">

                            <!--<div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">邮箱</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.email!}
                                    </div>
                                </div>
                            </div>-->
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">姓名</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.personInCharge!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">手机号</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.phone!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">微信号</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.weChat!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">QQ号</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.qq!}
                                    </div>
                                </div>
                            </div>
                            <div class="margin-top-12 ">
                                <div class=" flexed_inline">
                                    <span class="inline-table text-right width-100">产品</span>
                                    <div class="inline-block margin-left-40">
                                        ${companyInfo.product!}
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <input type="hidden" id="companyInfoId" value="${companyInfo.id!}"/>
                    <div class="div_modle margin-top-20">
                        <div class="form-group" style="padding-top: 25px;padding-left: 5%">
                            <%if(companyInfo.status=='1'){%>
                            <button id="noverified" class="hive-btn-cancle" type="button" value="">审核驳回</button>
                            <button id="hasverified" class="hive-btn hive-btn-primary" type="button">审核通过</button>
                            <%}%>
                            <button class="hive-btn-cancle" onclick="history.back()" type="button">返回</button>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://static.9hive.cn/global/vendor/jquery/jquery-2.1.4.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-3.3.7/bootstrap.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/bootstrap-table.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-table-1.11/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/bootstrap-export/bootstrap-export.js"></script>
<script src="https://static.9hive.cn/global/vendor/jquery-export/jquery-export.js"></script>
<script src="https://static.9hive.cn/global/js/core.min.js"></script>
<script src="https://static.9hive.cn/mmenu/assets/js/site.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<!--图片编辑器-->
<script src="/res/plugins/img-viewing/main.js"></script>
<script src="/res/plugins/img-viewing/viewer.js"></script>
<!--图片编辑器-->
<script>
    (function (document, window, $) {
        'use strict';

        var Site = window.Site;
        $(document).ready(function () {
            Site.run();
        });
    })(document, window, jQuery);

</script>
<script>
    $("#hasverified").on('click', function () {
        var id=$("#companyInfoId").val();
        parent.layer.confirm('您确定对商户审核通过吗？', {
            shade: [0.3,'#fff'],//0.1透明度的白色背景
            btn: ['是','否'] //按钮
        }, function(){
            parent.layer.close();
            $.ajax({
                url: "/sys/companyinfo/hasverified",
                type: 'GET',
                data:{
                    "id": id
                },
                success: function(data){
                    if (data.state=="ok" == true){
                        parent.layer.msg("操作成功!");
                        setTimeout(function () {
                            window.location.href = "/sys/companyinfo/list";
                        },2000);
                    }else{
                        layer.msg(data.info);
                    }
                }});
        });

    });

    $("#noverified").on('click', function () {
        layer.open({
            type: 1,
            title: ['请备注驳回原因', 'font-size:18px;text-align: center'],
            closeBtn: 0,
            shadeClose: false,
            shade: [0.3,'#fbfbfb'],//0.1透明度的白色背景
            area: ['420px', '240px'], //宽高
            content:'<div class="" id="noverifiedmodal" tabindex="-1" role="dialog" style="text-align: center;">'+
            '<textarea style="width: 80%;height: 130px;margin-top: 5px" id="remark"></textarea>'+
            '<div class="form-group" style="padding-top: 5px">'+
            '<button class="hive-btn-cancle" onclick="closeBtn()">取消</button>'+
            '<button class="hive-btn hive-btn-primary" onclick="sure()" style="margin-left: 15px">确定</button>'+
            '</div>'+
            '</div>'
        });


    });

    function closeBtn() {
        layer.closeAll();
    }
    function sure() {
        var id=$("#companyInfoId").val();
        var remark=$("#remark").val();
        if(!remark){
            layer.msg("请备注驳回理由!");
            return;
        }
        $.ajax({
            url: "/sys/companyinfo/noverified",
            type: 'GET',
            data:{
                "id": id,
                "remark":remark
            },
            success: function(data){
                if (data.state=="ok" == true){
                    layer.closeAll();
                    parent.layer.msg("操作成功!");
                    setTimeout(function () {
                        window.location.href = "/sys/companyinfo/list";
                    },2000);
                }else{
                    layer.msg(data.info);
                }
            }});
    }

</script>
</body>
</html>